import http from '@/utils/axios';

// 获取验证码
export const getCaptcha = () => {
    return http({
        method: 'get',
        url: '/captcha',
    });
}

// 登录
export const loginApi = (data: any) => {
    return http({
        method: 'post',
        url: '/login',
        data,
    })
}

// 管理员信息
export const getAdminInfoApi = () => {
    return http({
        method: 'get',
        url: '/getAdminInfo',
    });
}

// 菜单路由信息
export const getMenuRoutesApi = () => {
    return http({
        method: 'get',
        url: '/getMenuRoutes',
    });
}

// 权限标识列表
export const getPermissionsApi = () => {
    return http({
        method: 'get',
        url: '/getPermissions',
    });
}